package com.cuijq.ms.chain.v1;

/**
 * @author by CuiJQ
 * @Classname Handler
 * @Description Handler Description
 * @Date 2021/7/13 19:35
 */
public abstract class Handler {

  private Handler next;

  public void setNext(Handler next) {
    this.next = next;
  }

  public Handler getNext() {
    return next;
  }

  //处理请求的方法
  public abstract void handleRequest(String request);
}
